package chw.bootclient;


import chw.dubbo.User;
import chw.dubbo.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DubboClientController {

    @Autowired
    private UserService userService;

    @GetMapping("/aaa/{id}")
    public void test(@PathVariable Integer id){
        User user = userService.getUser(id);
        System.out.println(user);
    }



}
